package com.creditharmony.car.loan.dao.impl;

import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.creditharmony.car.common.base.dao.impl.BaseDaoImpl;
import com.creditharmony.car.loan.dao.CarLoanInfoDao;
import com.creditharmony.car.loan.entity.CarLoanInfoEntity;


/**
 * 借款dao
 * @Class Name CarLoanInfoDaoImpl
 * @author zqa
 * @Create In 2018年1月24日
 */
@Repository
public class CarLoanInfoDaoImpl extends BaseDaoImpl<CarLoanInfoEntity> implements CarLoanInfoDao {

    @Override
    public CarLoanInfoEntity queryCarLoanInfoByLoanCode(String loanCode) {
        return openSession().selectOne(getNamespace() + ".queryCarLoanInfoByLoanCode", loanCode);
    }

    @Override
    public void updateLoanInfo(CarLoanInfoEntity info) {
        openSession().update(getNamespace() + ".updateLoanInfo", info);
    }


}
